|
Gradient descent is a first-order optimization algorithm. To find a local minimum of a function using gradient descent, one takes steps proportional to the ''negative'' of the gradient (or of the approximate gradient) of the function at the current point. If instead one takes steps proportional to the ''positive'' of the gradient, one approaches a local maximum of that function; the procedure is then known as gradient ascent. Gradient descent is also known as steepest descent, or the method of steepest descent. However, gradient descent should not be confused with the method of steepest descent for approximating integrals. ==Description== Gradient descent is based on the observation that if the multivariable function is defined and differentiable in a neighborhood of a point , then decreases ''fastest'' if one goes from in the direction of the negative gradient of at , . It follows that, if : for small enough, then . With this observation in mind, one starts with a guess for a local minimum of , and considers the sequence such that : We have : so hopefully the sequence converges to the desired local minimum. Note that the value of the ''step size'' is allowed to change at every iteration. With certain assumptions on the function (for example, convex and Lipschitz) and particular choices of (e.g., chosen via a line search that satisfies the Wolfe conditions), convergence to a local minimum can be guaranteed. When the function is convex, all local minima are also global minima, so in this case gradient descent can converge to the global solution. This process is illustrated in the picture to the right. Here is assumed to be defined on the plane, and that its graph has a bowl shape. The blue curves are the contour lines, that is, the regions on which the value of is constant. A red arrow originating at a point shows the direction of the negative gradient at that point. Note that the (negative) gradient at a point is orthogonal to the contour line going through that point. We see that gradient ''descent'' leads us to the bottom of the bowl, that is, to the point where the value of the function is minimal. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「gradient descent」の詳細全文を読む スポンサード リンク
|